import Home from '@/pages/Home'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Search from '@/pages/Search'
import Test from '@/pages/Test'
import Detail from '@/pages/Detail'
import AddCartSuccess from '@/pages/AddCartSuccess'
export default [
    {
        path:'/',
        component:Home
    },
    {
        path:'/login',
        component:Login,
        meta:{
            isHiddenShow:true
        }
    },
    {
        path:'/register',
        component:Register,
        meta:{
            isHiddenShow:true
        }
    },
    {
        path:'/search',
        component:Search
    },
    {
        path:'/test',
        component:Test
    },
    {
        //注意此处使用id占位
        path:'/detail/:id',
        component:Detail
    },
    {
        path:'/addcart_success',
        component:AddCartSuccess
    }
]